package top.tenebrous.yzl.im.message;

import lombok.Data;
import top.tenebrous.yzl.im.enums.MessageType;
import top.tenebrous.yzl.im.model.ImClientFriendsBean;
import top.tenebrous.yzl.im.model.ImClientGroupBean;

import java.io.Serializable;
import java.util.List;

/**
 * @author yazhang6
 */
@Data
public class AuthResponseMessage implements Message, Serializable {

    /**
     * 自增id
     */
    private String userId;

    /**
     * 用户类型：1-普通用户；2-会员用户
     */
    private Integer userType;

    /**
     * 用户名
     */
    private String userName;

    /**
     *  会员头像
     */
    private String imageUrl;

    private List<ImClientFriendsBean> memFriendDO;

    private List<ImClientGroupBean> memGroupDO;

    @Override
    public String getType() {
        return MessageType.AUTH_COMPLETED.getCode();
    }
}
